{extend name="layout"/}
{block name="content"}
<div class="panel">
    <div class="panel-heading">
        <div class="panel-title">编辑【{$columnTitle}】下ID-{$id}的内容</div>
    </div>
    <form class="panel-body" method="post" action="{:url('edit',['cname'=>$fieldList['cname']['value']])}">
        {include file="inputItem"  /}
        {if  isset($placeList) && !empty($placeList)}
        <fieldset class="form-group">
            <label  style="clear:both; display: block">推荐位</label>
            {volist name="$placeList" id="vo"}
            <label class="custom-control custom-checkbox checkbox-inline">
                <input type="checkbox" name="modelField[places][]" class="custom-control-input" value="{$key}" {if in_array($key,$fieldList['places']['value'])}checked=''{/if}>
                <span class="custom-control-indicator"></span>{$vo}
            </label>
            {/volist}
        </fieldset>
        {/if}
        <div class="panel-footer text-right">
            <input type="submit" class="btn btn-primary" value="确认编辑">
        </div>
    </form>
</div>
{/block}
